package server.model.npcs;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class NPCEmotes {
	
	private int maxNPCs;

	public void loadNpcEmotes(String fileName) {
		try {
			Scanner s = new Scanner(new File(fileName));
			while (s.hasNextLine()) {
				String line = s.nextLine();
				String[] split = line.substring(line.indexOf("=") + 1).split("\t");
				newNpcEmotes(Integer.parseInt(split[0]), Integer.parseInt(split[1]), Integer.parseInt(split[2]), Integer.parseInt(split[3]), Integer.parseInt(split[4]));
			}
			s.close();
		} catch (IOException ioe) {ioe.printStackTrace();}
	}
    public final int[][] NPC_EMOTES = new int[maxNPCs][100];

	public void newNpcEmotes(int npcType, int atk, int blk, int die, int spawn) {
		NPC_EMOTES[npcType][0] = npcType;
		NPC_EMOTES[npcType][1] = atk;
		NPC_EMOTES[npcType][2] = blk;
		NPC_EMOTES[npcType][3] = die;
		NPC_EMOTES[npcType][4] = spawn;
	}
}
